package com.san.common.auth.util;

import com.san.common.auth.dto.LoginSysUser;
import com.san.common.auth.entity.SysUser;
import org.springframework.beans.BeanUtils;

public class UserUtils {

    public static LoginSysUser getLoginSysUser(SysUser sysUser) {
        if (sysUser != null) {
            LoginSysUser loginSysUser = new LoginSysUser();
            BeanUtils.copyProperties(sysUser, loginSysUser);
            return loginSysUser;
        }
        return null;
    }
}
